package com.xjgc.eip.twice.zxjeip2chjwsd.service.impl;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Service;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xjgc.eip.twice.zxjeip2chjwsd.entity.ZxjEip2chjwsd;
import com.xjgc.eip.twice.zxjeip2chjwsd.mapper.ZxjEip2chjwsdMapper;
import com.xjgc.eip.twice.zxjeip2chjwsd.service.ZxjEip2chjwsdService;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author XXX
 * @since 2019-12-06
 */
@Service
public class ZxjEip2chjwsdServiceImpl extends ServiceImpl<ZxjEip2chjwsdMapper, ZxjEip2chjwsd> implements ZxjEip2chjwsdService {
    @DS("proxyDs")
    public IPage<ZxjEip2chjwsd> queryPageList(ZxjEip2chjwsd zxjEip2chjwsd, Integer pageNo,
                                              Integer pageSize,HttpServletRequest req) {
        QueryWrapper<ZxjEip2chjwsd> queryWrapper =  new QueryWrapper<>();
        Page<ZxjEip2chjwsd> page = new Page<ZxjEip2chjwsd>(pageNo, pageSize);
        IPage<ZxjEip2chjwsd> pageList = super.page(page, queryWrapper);
        return pageList;
    }
}
